home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / dylanintr.vim < prev    next >
Encoding:
Text File  |  2001-05-11  |  1.5 KB  |  53 lines

  1. " Vim syntax file
  2. " Language:    Dylan
  3. " Authors:    Justus Pendleton <justus@acm.org>
  4. " Last Change:    Fri Sep 29 13:53:27 PDT 2000
  5. "
  6.  
  7. " For version 5.x: Clear all syntax items
  8. " For version 6.x: Quit when a syntax file was already loaded
  9. if version < 600
  10.   syntax clear
  11. elseif exists("b:current_syntax")
  12.   finish
  13. endif
  14.  
  15. syn case ignore
  16.  
  17. syn region    dylanintrInfo        matchgroup=Statement start="^" end=":" oneline
  18. syn match    dylanintrInterface    "define interface"
  19. syn match    dylanintrClass        "<.*>"
  20. syn region    dylanintrType        start=+"+ skip=+\\\\\|\\"+ end=+"+
  21.  
  22. syn region    dylanintrIncluded    contained start=+"+ skip=+\\\\\|\\"+ end=+"+
  23. syn match    dylanintrIncluded    contained "<[^>]*>"
  24. syn match    dylanintrInclude    "^\s*#\s*include\>\s*["<]" contains=intrIncluded
  25.  
  26. "syn keyword intrMods pointer struct
  27.  
  28. " Define the default highlighting.
  29. " For version 5.7 and earlier: only when not done already
  30. " For version 5.8 and later: only when an item doesn't have highlighting yet
  31. if version >= 508 || !exists("did_dylan_intr_syntax_inits")
  32.   if version < 508
  33.     let did_dylan_intr_syntax_inits = 1
  34.     command -nargs=+ HiLink hi link <args>
  35.   else
  36.     command -nargs=+ HiLink hi def link <args>
  37.   endif
  38.  
  39.   HiLink dylanintrInfo        Special
  40.   HiLink dylanintrInterface    Operator
  41.   HiLink dylanintrMods        Type
  42.   HiLink dylanintrClass        StorageClass
  43.   HiLink dylanintrType        Type
  44.   HiLink dylanintrIncluded    String
  45.   HiLink dylanintrInclude    Include
  46.  
  47.   delcommand HiLink
  48. endif
  49.  
  50. let b:current_syntax = "dylanintr"
  51.  
  52. " vim:ts=8
  53.